﻿// TODO: Gather attribute info, to determine POST vs GET, Authorization, etc.
using System;
using System.Collections.Generic;
using System.Linq;

namespace DynamicGeneration.Modules.WebApiExplorer
{
    public class RouteInfo
    {
        public string UrlPattern { get; set; }
        public string RouteName { get; set; }
        public string[] ControllerNamespaces { get; set; }
        public string RouteHandler { get; set; }
        public string ServiceRoot 
        {
            get
            {
                return RouteName.Substring(0, RouteName.IndexOf("-"));
            }
        }
    }
}